package myclassloader;

public class MyClassLoaderTest {
    public static void main(String[] args) throws ClassNotFoundException {
        String basicPath ="D:\\Date\\IdeaProjects\\myClassLoader\\";
        SimpleAppClassLoaderDemo appClassLoaderDemo = new SimpleAppClassLoaderDemo(basicPath);
        //appClassLoaderDemo.loadClass("pkg.Hello");//只加载不初始化
        Class.forName("pkg.Hello",true,appClassLoaderDemo);//加载并初始化!
    }
}
